# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pylstar
pkgver=0.1.2
pkgrel=9
pkgdesc='Implementation of the LSTAR Grammatical Inference Algorithm.'
url='https://pypi.org/project/pylstar/#files'
arch=('any')
license=('GPL3')
depends=('python')
makedepends=('python-setuptools')
source=("https://pypi.python.org/packages/9e/50/a35b29bdaab70c850d41938d53684e233b9803f6305ddd7826484e3a53eb/pylstar-$pkgver.tar.gz")
sha512sums=('3c4ac2f3e5773eee721e41cf53d23e221f66b479deb0458ff099fa5da7326a86db89f2c4a10a442b61662ed525bb471f1cbc448c7768c230c7896a64c51ba6da')

build() {
  cd "pylstar-$pkgver"

  python setup.py build
}

package() {
  cd "pylstar-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

